import Mock from "mockjs";
import loginMock from "./loginMock";
import courseMock from "./courseMock";
import orderMock from "./orderMock";

import stuMock from "./stuMock";
import homeMock from "./home";
import FinanceMock from "./FinanceMock";

// 登录
Mock.mock(/\/loginApi/, "post", loginMock.loginDate);
Mock.mock(/\/resgisteApi/, "post", loginMock.resgisterData);

// 课程管理
Mock.mock(/\/getCourseData/, "get", courseMock.getCourseData);
Mock.mock(/\/deleteByCourseId/, "post", courseMock.deleteMockData);
Mock.mock(/\/batchCourseDelete/, "post", courseMock.batchDeleteData);
Mock.mock(/\/updateCourse/, "post", courseMock.updateCourse);

//Home
Mock.mock(/\/gettodaydata/, "get", homeMock.getTodayData);
Mock.mock(/\/getmoneydata/, "get", homeMock.getMoneyData);
Mock.mock(/\/getstudentinfo/, "get", homeMock.getStudentInfo);
Mock.mock(/\/getorderdata/, "get", homeMock.getOrderData);
Mock.mock(/\/getsubjectdata/, "get", homeMock.getSubjectData);
Mock.mock(/\/getteacherdata/, "get", homeMock.getTeacherData);
Mock.mock(/\/getnews/, "get", homeMock.getNews);

// 财务管理api
Mock.mock(/\/getFinanceData/, "get", FinanceMock.getFinanceData);
Mock.mock(/\/batchDelate/, "post", FinanceMock.batchDelateData);

//Teacher
import teacherHome from "./teacherMock";
Mock.mock(/\/getTeacherData/, "get", teacherHome.getTeacherhome);
Mock.mock(/\/deleteteacherData/, "post", teacherHome.deleteData);
Mock.mock(/\/changeTeacherData/, "post", teacherHome.changeData);
Mock.mock(/\/batchTeacherData/, "post", teacherHome.batchData);
//订单管理
Mock.mock(/\/getOrderData/, "get", orderMock.getHomeData);
Mock.mock(/\/deleteByid/, "post", orderMock.deleteMockData);
Mock.mock(/\/batchDelete/, "post", orderMock.batchDeleteMockData);
Mock.mock(/\/lookOrder/, "get", orderMock.lookMockData);
//学生管理
Mock.mock(/\/getStuData/, "get", stuMock.getStuData);
Mock.mock(/\/deleteById/, "post", stuMock.deleteMock);
Mock.mock(/\/updatefn/, "post", stuMock.updateMock);
